Minimal float -> u8, u16 conversions
authorDaniel Sabo <DanielSabo@gmail.com>
Wed, 30 Jan 2013 02:41:44 +0000 (18:41 -0800)
committerDaniel Sabo <DanielSabo@gmail.com>
Sat, 6 Apr 2013 03:37:24 +0000 (20:37 -0700)
commit478216a472527359814c4b376aecd167aa56cda0
tree256b440406093d5a8b8a5d89c0836d48fd4bb9f1
parent31dd292736dc2ebf461d61f29b984fa84550fd15
Minimal float -> u8, u16 conversions

Add some simplistic but "accurate" float -> u8 and float -> u16
conversions to make more non-reference paths usable.

The main difference from the existing conversions is that these
clamp out of range values and make the path error checker happy.

I also had to fudge the float-to-8bit slightly because the prior
values cause it to check for the rounding on an exact 0.5 value.
extensions/Makefile.am
extensions/gegl-fixups.c
extensions/simple.c [new file with mode: 0644]
tests/float-to-8bit.c